package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.ManualOutBoundStatisticsBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class ManualOutBoundStatisticsAdapter extends BaseAdapter<ManualOutBoundStatisticsBean> {
    public ManualOutBoundStatisticsAdapter(int layoutResId, @Nullable List<ManualOutBoundStatisticsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ManualOutBoundStatisticsBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_name,item.getNameSpecification());
        helper.setText(R.id.tv_to_be_delivered,item.getOutNum()+"");
        helper.setText(R.id.tv_total_amount_delivered,item.getOutedNum()+"");
    }
}
